package com.usian.storage.controller;

import com.usian.storage.service.TbStroageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("storage")
public class TbStroageController {
    @Autowired
    private TbStroageService tbStroageService;

    @RequestMapping("deduct")//扣减库存
    public void deduct(String commodityCode,int count){
        tbStroageService.deduct(commodityCode,count);
    }

}
